package code06_数组;
import java.util.Scanner;
/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月17日10:11
 */
public class Test03_练习 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入学生数量:");
        int num = sc.nextInt();
        String[] names = new String[num];
        for (int i = 0; i < names.length; i++) {
            System.out.print("请输入第" + (i + 1) + "名学生的姓名:");
            names[i] = sc.next();
        }
        System.out.println("学生姓名录入完成,其数据如下:");
        for (int i = 0; i < names.length; i++) {
            System.out.print(names[i] + "\t");
        }
    }
}
